/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package unc.pds.facets;

import unc.pds.model.UserRemote;

/**
 *
 * @author Mikhail
 */
public class CreateGroupFacet implements Facet {
    public CreateGroupFacet(UserRemote user) {
        this.user = user;
    }
    UserRemote user;
    public String draw() throws Exception {
        String result = "";
        result += "<h4>Новая группа</h4>";
        result += "<form action=\"group-processor.jsp\" method=\"post\" onsubmit=\"return validateEmpty('name');\">";
        result += "<p><input type=\"hidden\" name=\"action\" value=\"creategroup\"/></p>";
        result += "<p><input type=\"text\" name=\"name\" id=\"name\"/></p>";
        result += "<p><input type=\"submit\" value=\"Создать\"></p>";
        result += "</form>";
        return result;
    }
    public boolean isSide() {
        return false;
    }
}
